#define _HART_5700ACPZ_RL7_C_
/* Includes ---------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "Hart_5700ACPZ_RL7.h"
/* USER CODE END Includes */

/* Types ------------------------------------------------------------*/
/* USER CODE BEGIN Types */

/* USER CODE END Types */

/* Constants --------------------------------------------------------*/
/* USER CODE BEGIN Constants */

/* USER CODE END Constants */

/* Macro ------------------------------------------------------------*/
/* USER CODE BEGIN Macro */

/* USER CODE END Macro */

/* Variables ---------------------------------------------------------*/
/* USER CODE BEGIN Variables */

/* USER CODE END Variables */

/* Function prototypes -----------------------------------------------*/
/* USER CODE BEGIN FP */

/* USER CODE END FP */

void vHart5700ACPZRL7Init(void)
{
	FL_GPIO_InitTypeDef GPIO_InitStruct = {0};

	// HartRst
    GPIO_InitStruct.pin = FL_GPIO_PIN_4;
    GPIO_InitStruct.mode = FL_GPIO_MODE_OUTPUT;
    GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL;
    GPIO_InitStruct.pull = FL_DISABLE;
    GPIO_InitStruct.remapPin = FL_DISABLE;
    GPIO_InitStruct.analogSwitch = FL_DISABLE;
    FL_GPIO_Init(GPIOB, &GPIO_InitStruct);
	
	// HartRTS
	GPIO_InitStruct.pin = FL_GPIO_PIN_12;
	GPIO_InitStruct.mode = FL_GPIO_MODE_OUTPUT;
    GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL;
    GPIO_InitStruct.pull = FL_DISABLE;
    GPIO_InitStruct.remapPin = FL_DISABLE;
    GPIO_InitStruct.analogSwitch = FL_DISABLE;
	FL_GPIO_Init(GPIOA, &GPIO_InitStruct);
	
	// HartCarrierDet
	GPIO_InitStruct.pin = FL_GPIO_PIN_3;
	GPIO_InitStruct.mode = FL_GPIO_MODE_INPUT;
	FL_GPIO_Init(GPIOB, &GPIO_InitStruct);
	
	HART_RTS_H();
	HART_RST_H();
}
